home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk10.zip / VSMALL.BAT < prev    next >
DOS Batch File  |  1991-10-05  |  4KB  |  132 lines

  1. echo off
  2. rem  batch file to make small model mawk
  3. rem  with a  unix command line
  4. rem  using TurboC++ (should work with any Borland C)
  5. rem
  6. rem   change LIB on the tlink command
  7. rem   to the appropriate directory on your system
  8. rem
  9. rem   you have to provide  reargv.c
  10.  
  11. echo  copy  config\tcc_dos.h   config.h
  12. copy  config\tcc_dos.h   config.h
  13.  
  14. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 reargv.c
  15. if errorlevel 1 goto ERR
  16.  
  17. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 parse.c
  18. if errorlevel 1 goto ERR
  19.  
  20. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 array.c
  21. if errorlevel 1 goto ERR
  22.  
  23. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 bi_funct.c
  24. if errorlevel 1 goto ERR
  25.  
  26. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 bi_vars.c
  27. if errorlevel 1 goto ERR
  28.  
  29. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 cast.c
  30. if errorlevel 1 goto ERR
  31.  
  32. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 code.c
  33. if errorlevel 1 goto ERR
  34.  
  35. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 da.c
  36. if errorlevel 1 goto ERR
  37.  
  38. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 error.c
  39. if errorlevel 1 goto ERR
  40.  
  41. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 execute.c
  42. if errorlevel 1 goto ERR
  43.  
  44. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 fcall.c
  45. if errorlevel 1 goto ERR
  46.  
  47. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 field.c
  48. if errorlevel 1 goto ERR
  49.  
  50. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 files.c
  51. if errorlevel 1 goto ERR
  52.  
  53. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 fin.c
  54. if errorlevel 1 goto ERR
  55.  
  56. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 hash.c
  57. if errorlevel 1 goto ERR
  58.  
  59. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 init.c
  60. if errorlevel 1 goto ERR
  61.  
  62. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 jmp.c
  63. if errorlevel 1 goto ERR
  64.  
  65. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 kw.c
  66. if errorlevel 1 goto ERR
  67.  
  68. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 main.c
  69. if errorlevel 1 goto ERR
  70.  
  71. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 matherr.c
  72. if errorlevel 1 goto ERR
  73.  
  74. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 memory.c
  75. if errorlevel 1 goto ERR
  76.  
  77. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 print.c
  78. if errorlevel 1 goto ERR
  79.  
  80. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 re_cmpl.c
  81. if errorlevel 1 goto ERR
  82.  
  83. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 scan.c
  84. if errorlevel 1 goto ERR
  85.  
  86. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 scancode.c
  87. if errorlevel 1 goto ERR
  88.  
  89. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 split.c
  90. if errorlevel 1 goto ERR
  91.  
  92. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 zmalloc.c
  93. if errorlevel 1 goto ERR
  94.  
  95. tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 version.c
  96. if errorlevel 1 goto ERR
  97.  
  98. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp.c
  99. if errorlevel 1 goto ERR
  100.  
  101. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp0.c
  102. if errorlevel 1 goto ERR
  103.  
  104. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp1.c
  105. if errorlevel 1 goto ERR
  106.  
  107. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp2.c
  108. if errorlevel 1 goto ERR
  109.  
  110. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp3.c
  111. if errorlevel 1 goto ERR
  112.  
  113. tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexpdb.c
  114. if errorlevel 1 goto ERR
  115.  
  116. tlink /c/x \LIB\c0s \LIB\wildargs reargv @msdos\OBJS_TCC.LNK,mawk,,\LIB\emu \LIB\maths \LIB\cs
  117. if errorlevel 1 goto LINKERR
  118. echo  If you want to test mawk.exe, then
  119. echo  copy all files in msdos\dostest to mawk\test
  120. echo  copy mawk.exe to mawk\test
  121. echo  and run mawk_tes.bat and fpe_test.bat
  122. goto done
  123.  
  124. :ERR
  125. echo  compile error
  126. goto done
  127.  
  128. :LINKERR
  129. echo  link  error
  130.  
  131. :done
  132.